package com.csap.framework.oauth2.request;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "角色", value = "roles对象")
public class RolesResponse implements Serializable {
    @ApiModelProperty(description = "角色ID", value = "角色ID", forceRep = true)
    private Long roleId;
    @ApiModelProperty(description = "角色名称", value = "角色名称", forceRep = true)
    private String name;
    @ApiModelProperty(description = "描述", value = "描述", forceRep = true)
    private String descr;
    @ApiModelProperty(description = "创建时间", value = "创建时间", forceRep = true)
    private LocalDateTime createTime;
    @ApiModelProperty(description = "修改时间", value = "创建时间", forceRep = true)
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "角色类型1平台2客户端", forceRep = true)
    private Integer type;
    @ApiModelProperty(value = "角色类型1平台2客户端", forceRep = true)
    private String typeId;
    @ApiModelProperty(value = "部门Id", forceRep = true)
    private Long deptId;
    @ApiModelProperty(value = "部门名称")
    private String deptName;
    @ApiModelProperty(value = "角色人数", forceRep = true)
    private String count;
    @ApiModelProperty("是否删除")
    private Boolean del;
    @ApiModelProperty(description = "是否默认角色", value = "是否默认角色", forceRep = true)
    private Integer defaults;
    @ApiModelProperty(value = "权限")
    private Set<String> permissions;
    @ApiModelProperty(value = "菜单ID列表", forceRep = true)
    private Set<Long> menuIds;
}
